package com.p2p.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "轮播实体")
public class Carousel implements Serializable {

  @ApiModelProperty(name = "id",notes = "id",dataType = "Integer",required = true)
  @TableId(value = "id", type = IdType.ASSIGN_ID)
  private Integer id;
  @ApiModelProperty(name = "title",notes = "标题",dataType = "String",required = false)
  private String title;
  @ApiModelProperty(name = "location",notes = "轮播位置",dataType = "String",required = false)
  private String location;
  @ApiModelProperty(name = "startTime",notes = "开始时间",dataType = "Timestamp",required = false)
  @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
  private Timestamp startTime;
  @ApiModelProperty(name = "endTime",notes = "结束时间",dataType = "Timestamp",required = false)
  @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
  private Timestamp endTime;
  @ApiModelProperty(name = "sort",notes = "排序",dataType = "Integer",required = false)
  private Integer sort;
  @ApiModelProperty(name = "status",notes = "状态",dataType = "Byte",required = false)
  private Byte status;
  @ApiModelProperty(name = "imgUrl",notes = "图片路径",dataType = "String",required = false)
  private String imgUrl;
  @ApiModelProperty(name = "carouselUrl",notes = "轮播跳转路径",dataType = "String",required = false)
  private String carouselUrl;


  @ApiModelProperty(name = "isDeleted",notes = "是否删除",dataType = "Byte",required = false)
  /**
   * 是否删除
   */
  @TableLogic
  private Byte isDeleted;

  private Timestamp createTime;

  private Timestamp updateTime;


}
